package com.cognitran.cssvalidator.ant.output.formatters;


/**
 * An abstract wrapper of an output formatter to handle output location storage. 
 * 
 * @author garethf
 */
public abstract class AbstractOutputFormatter implements OutputFormatter
{
	
	/** The output folder that output will be written to. */
	private String outputDir;
	

	/**
	 * {@inheritDoc}
	 */
	public void setOutputLocation(final String dir) 
	{
		this.outputDir = dir;
	}

	
	/**
	 * Get the output location that formatted output will be written to.
	 * 
	 * @return Get the output location.
	 */
	protected String getOutputLocation()
	{
		return outputDir;
	}
	

	/**
	 * {@inheritDoc}
	 */
	public void init()
	{
		// Default implementation is empty.
	}
	
	
	/**
	 * {@inheritDoc}
	 */
	public void cleanup()
	{
		// Default implementation is empty.
	}

}
